<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j" template="/users/users-frame.xhtml">

	<ui:param name="pageTitle" value="#{messages['page.users.show.title']}" />

	<ui:define name="subheader">#{messages['page.users.show.subheader']} #{user.username}</ui:define>

	<ui:define name="main">
		<h:form id="userEditForm">
			<rich:panel id="userEditPanel">
				<f:facet name="header">
					<h:outputText value="#{messages['page.users.show.panel.title']}" />
				</f:facet>

				<s:decorate id="userUsernameDecoration"
					template="/layout/edit.xhtml">
					<ui:define name="label">#{messages['user.username']}:</ui:define>
					<h:outputText id="username" value="#{user.username}"
						style="width:300px;" />
				</s:decorate>

				<s:decorate id="userEmailDecoration" template="/layout/edit.xhtml">
					<ui:define name="label">#{messages['user.email']}:</ui:define>
					<h:outputText value="#{user.email}" id="email" style="width:300px;" />
				</s:decorate>

				<s:decorate id="userRoleDecoration" template="/layout/edit.xhtml">
					<ui:define name="label">#{messages['user.role']}:</ui:define>
					<h:outputText value="#{user.rolesName()}" />
				</s:decorate>

				<s:decorate template="/layout/buttonbox.xhtml" id="personButtonBox">
					<s:button action="#{userBean.refresh(user)}"
						value="#{messages['general.back']}" view="/users/index.xhtml"
						id="back" />
				</s:decorate>
			</rich:panel>
		</h:form>
	</ui:define>
</ui:composition>
